package com.biostime.qdingding.modules.qd.entity;

import java.util.Date;

import com.biostime.qdingding.common.persistence.DataEntity;

/**
 * 收支记录Entity
 * @author king
 * @version 2015-11-12
 */
public class Transrecord extends DataEntity<Transrecord> {

	private static final long serialVersionUID = 1L;
	
	private Integer inout;// 收支类型，0收，1支
	private String type;// 交易类型 支的有：普通课程、户外课程； 收的有：1充值（即合同支付）、2请假资格返还、3取消资格返还，
	private Double money;// 交易金额
	private String payType;// 支付方式（微信，支付宝，银联，现金）
	private String payCode;// 支付单号
	private Date payDate;// 发生日期
	private String description;// 描述
	private Integer memberId;// 会员编号
	private Integer invalid;// invalid
	private Integer invalidBy;// 作废人
	private Date invalidDate;// 作废时间
	private String invalidReason;// 作废理由
	private Integer studentId;// 学员编号
	private Integer courseorderId;// 预约课程编号
	private Integer contractId;// 合同编号
	private Integer centerId;// 早教中心编号
	
	private Contract contract;//合同
	private Student student;//学员
	private Member member;//会员
	
	private Date startOn;//查询用 起始时间 
	private Date endOn;//查询用 结束时间
	
	public Transrecord(){
		super();
	}
	
	public Transrecord(String id){
		super(id);
	}
	
	public Integer getInout() {
		return inout;
	}

	public void setInout(Integer inout) {
		this.inout = inout;
	}
	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}
	
	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}
	
	public String getPayCode() {
		return payCode;
	}

	public void setPayCode(String payCode) {
		this.payCode = payCode;
	}
	
	public Date getPayDate() {
		return payDate;
	}

	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public Integer getMemberId() {
		return memberId;
	}

	public void setMemberId(Integer memberId) {
		this.memberId = memberId;
	}
	
	public Integer getInvalid() {
		return invalid;
	}

	public void setInvalid(Integer invalid) {
		this.invalid = invalid;
	}
	
	public Integer getInvalidBy() {
		return invalidBy;
	}

	public void setInvalidBy(Integer invalidBy) {
		this.invalidBy = invalidBy;
	}
	
	public Date getInvalidDate() {
		return invalidDate;
	}

	public void setInvalidDate(Date invalidDate) {
		this.invalidDate = invalidDate;
	}
	
	public String getInvalidReason() {
		return invalidReason;
	}

	public void setInvalidReason(String invalidReason) {
		this.invalidReason = invalidReason;
	}
	
	public Integer getStudentId() {
		return studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}
	
	public Integer getCourseorderId() {
		return courseorderId;
	}

	public void setCourseorderId(Integer courseorderId) {
		this.courseorderId = courseorderId;
	}
	
	public Integer getContractId() {
		return contractId;
	}

	public void setContractId(Integer contractId) {
		this.contractId = contractId;
	}

	public Integer getCenterId() {
		return centerId;
	}

	public void setCenterId(Integer centerId) {
		this.centerId = centerId;
	}

	public Contract getContract() {
		return contract;
	}

	public void setContract(Contract contract) {
		this.contract = contract;
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public Date getStartOn() {
		return startOn;
	}

	public void setStartOn(Date startOn) {
		this.startOn = startOn;
	}

	public Date getEndOn() {
		return endOn;
	}

	public void setEndOn(Date endOn) {
		this.endOn = endOn;
	}
}
